#include "RenderContext.h"
#include "Drawable3D.h"
#include "Camera.h"

namespace egg{

    void RenderContext::clear(){
        mMaxViewWidth=0;
        mMaxViewHeight=0;
        mOrderedLights.clear();
        mOrderedCameras.clear();
    }

    void RenderContext::addLight(Light* _light){
        mOrderedLights.push_back(_light);
    }

    void RenderContext::addDrawable(Drawable3D* _drawalbe){
        mDPGs[_drawalbe->mDepthPriority].addItem(_drawalbe);
    }

}